//点击搜索
  let key = getId()
  $.ajax({
    type: 'get',
     url: '/posts/search/'+key,
   success: function(response) {
     let html = template('searchTpl', {data: response})
     $('.article').html(html)
   }
  })
 